<script>
import earcut from 'earcut'
import { MeshBuilder } from '@babylonjs/core'
import AbstractMesh from './AbstractMesh.vue'

export default {
  name: 'RibbonMesh',
  mixins: [AbstractMesh],

  onScene({ name, scene }) {
    return MeshBuilder.CreateRibbon(name, this.options, scene, earcut)
  },
}
</script>
